--- /dev/null
+// SPDX-FileCopyrightText: 2025 Florian Müllner <fmuellner@gnome.org>
+// SPDX-License-Identifier: MIT OR LGPL-2.1-or-later
+
+import {defineConfig} from '@eslint/config-helpers';
+import globals from 'globals';
+import gnome from 'eslint-config-gnome';
+
+export default defineConfig([
+ gnome.configs.recommended,
+ gnome.configs.jsdoc,
+ {
+ ignores: [
+ '_build-*',
+ 'data',
+ 'docs',
+ 'man',
+ 'src',
+ 'subprojects/gvc',
+ 'subprojects/jasmine-gjs',
+ 'subprojects/libshew',
+ ],
+ }, {
+ rules: {
+ camelcase: ['error', {
+ properties: 'never',
+ }],
+ 'consistent-return': 'error',
+ 'eqeqeq': ['error', 'smart'],
+ 'key-spacing': ['error', {
+ mode: 'minimum',
+ beforeColon: false,
+ afterColon: true,
+ }],
+ 'prefer-arrow-callback': 'error',
+ 'jsdoc/require-param-description': 'off',
+ 'jsdoc/require-jsdoc': ['error', {
+ exemptEmptyFunctions: true,
+ publicOnly: {
+ esm: true,
+ },
+ }],
+ },
+ }, {
+ files: [
+ 'js/**',
+ 'tests/shell/**',
+ ],
+ ignores: [
+ 'js/portalHelper/*',
+ 'js/extensions/*',
+ ],
+ languageOptions: {
+ globals: {
+ global: 'readonly',
+ _: 'readonly',
+ C_: 'readonly',
+ N_: 'readonly',
+ ngettext: 'readonly',
+ },
+ },
+ }, {
+ files: ['tests/unit/**'],
+ rules: {
+ 'jsdoc/require-jsdoc': 'off',
+ },
+ languageOptions: {
+ globals: {
+ ...globals.jasmine,
+ },
+ },
+ }, {
+ files: ['subprojects/extensions-app/js/**'],
+ languageOptions: {
+ globals: {
+ _: 'readonly',
+ C_: 'readonly',
+ N_: 'readonly',
+ },
+ },
+ },
+]);
"license": "MIT OR LGPL-3.0-or-later",
"dependencies": {
"ci-run-eslint": "git+https://gitlab.gnome.org/World/javascript/ci-run-eslint.git",
- "eslint-plugin-jsdoc": "^48.11.0"
+ "eslint-config-gnome": "git+https://gitlab.gnome.org/World/javascript/eslint-config-gnome.git"
}
},
"node_modules/@es-joy/jsdoccomment": {
},
"node_modules/eslint-config-gnome": {
"version": "1.0.0",
- "resolved": "git+https://gitlab.gnome.org/World/javascript/eslint-config-gnome.git#bb86b2d6a4ef575e84d1374676aff0187cf3fedf",
+ "resolved": "git+https://gitlab.gnome.org/World/javascript/eslint-config-gnome.git#c479d059e8d9ea99c3b53c2ea43abf7fdb05eb51",
"license": "MIT OR LGPL-2.1-or-later",
"dependencies": {
"@eslint/config-helpers": "^0.2.2",
},
"dependencies": {
"ci-run-eslint": "git+https://gitlab.gnome.org/World/javascript/ci-run-eslint.git",
- "eslint-plugin-jsdoc": "^48.11.0"
+ "eslint-config-gnome": "git+https://gitlab.gnome.org/World/javascript/eslint-config-gnome.git"
}
}